﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage1.Master" AutoEventWireup="true" CodeBehind="CadPessoa.aspx.cs" Inherits="GUI_Web.CadPessoa" Theme="Skin1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="telaCadPessoa centralizado">
        <table cellspacing="0" cellpadding="5" 
            style="font-size: 12px; border-collapse:collapse; width: 50%;">
            <tr>
                <div class="titulo"> Cadastro de Pessoa </div>
            </tr>
            <tr id="trCadCli" runat="server">
                <td>
                    <div class="tabela_cadastro">
                        <table cellpadding="5" width="100%" style="text-align:left;">
                        <tr>
                            <th>Username</th>
                            <td><asp:TextBox ID="txtUser" runat="server" Sie="50" MaxLength="20" /></td>
                        </tr>
                        <tr>
                            <th>Nome</th>
                            <td ><asp:TextBox ID="txtNome" runat="server" Size="50" MaxLength="50" /></td>
                               
                            <th>Código</th>
                            <td><asp:Label ID="lblCodigo" runat="server" Text="Novo" /></td>
                        </tr>
                        <tr>
                            <th>Telefone</th>
                            <td><asp:TextBox runat="server" ID="txtTel" MaxLength="14" /></td>
                            <th rowspan="5" valign="top"><!--Foto--></th>
                            <!--<td rowspan="5" valign="top">
                                <asp:Image ID="imgFoto" runat="server" Visible="false" /><br />
                                <asp:Button ID="btnAlterarFoto" runat="server" Text="Alterar" 
                                    style="font-size:10px; height: 20px;" 
                                    Enabled="false" Visible="false" />
                            </td>
                            -->
                        </tr>
                        <tr>
                            <th>Endereço</th>
                            <td><asp:TextBox ID="txtEndereco" runat="server" MaxLength="100" Width="197px" />&nbsp;&nbsp;&nbsp;&nbsp;
                                <b>N°</b>&nbsp;
                                <asp:TextBox ID="txtNumEndereco" runat="server" MaxLength="20" Width="40px" />
                            </td>
                        </tr>
                        <tr>
                            <th>Bairro</th>
                            <td><asp:TextBox ID="txtBairro" runat="server" MaxLength="50" Size="50" /></td>
                        </tr>
                        <tr>
                            <th>Cidade</th>
                            <td><asp:TextBox runat="server" ID="txtCidade" MaxLength="50"  Width="160px" />&nbsp;&nbsp;&nbsp
                                <b>Estado</b>&nbsp;
                                <asp:DropDownList runat="server" ID="ddlEstado">
                                    <asp:ListItem Text="SP" />
                                    <asp:ListItem Text="RJ" />
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th>CPF</th>
                            <td><asp:TextBox runat="server" ID="txtCpf" size="50" SkinID="CPF" /></td> 
                        </tr>
                        </table>
                    </div>
                    <table cellpadding="5" width="50px" align="center">
                        <tr>
                            <td><asp:Button ID="btnSalvar" runat="server" Text="Salvar" 
                                    onclick="btnSalvar_Click"/></td>              
                            <td><asp:Button ID="btnExcluir" runat="server" Text="Excluir" 
                                    OnClientClick="return confirm('Tem certeza que deseja excluir esta pessoa ?');" 
                                    Enabled="true" onclick="btnExcluir_Click"/></td>
                            <td><asp:Button ID="btnVoltar" runat="server" Text="Voltar" 
                                    onclick="btnVoltar_Click"/></td>
                        </tr>
                        <tr><asp:Label runat="server" ID="lblerro" /></tr>
                    </table>

                </td>
            </tr>        
         </table>
    </div>
</asp:Content>
